/**
 * 调用user相关http接口
 */
import httpUtil from './index.js'

// 注册用户
export function registerUser (params) {
  return httpUtil({
    url: "/user/add",
    method: "post",
    data: params
  })
}

// 登录
export function loginUser (params) {
  return httpUtil({
    url: "/loginIn",
    method: "post",
    data: params
  })
}

// 退出登录
export function logoutUser () {
  return httpUtil({
    url: "/loginOut",
    method: "get"
  })
}